<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <title>模板语法</title>
        <script type="text/javascript" src="../js/vue.js"></script>
    </head>
    <body>
        <!-- 准备好一个容器-->
        <div id="root">
            <h1>差值语法</h1>
            <h2>你好,{{name}}</h2>
            <hr>

            <h1>指令语法</h1>
            <a v-bind:href="school.url">点我去百度</a>
            <br>
            <br>
            <a :href="school.url">点我去百度1</a>
        </div>
    </body>
        <script type="text/javascript">
            Vue.config.productionTip = false
            new Vue({
                el:'#root',
                data:{
                    name:'小牛马',
                    school:{
                        name:'尚硅谷',
                        url:'https://www.baidu.com'
                    }
                }
            })
        </script>
</html>